package work.month07.day02;

import java.nio.file.Path;
import java.sql.Date;

/**
 * @date 2020/07/02
 * @author 王光浩
 * @introduction 测试
 */
public class Test2 {

	public static void main(String[] args) {
		Date date = new Date(System.currentTimeMillis());
		Student s1 = new Student(4, "王光", "男", date);
		Student s2 = null;
		
		System.out.println(s1);
		
		// 1. 获取 实例对象
		StudentDaoDatabase daoDataBase = new StudentDaoDatabase();
		// 2. 存储数据
		daoDataBase.save(s1);
		// 3. 获取数据
		s2 = daoDataBase.find(2);
		System.out.println(s2);
	}
	
}
